import os

# import uiautomator2 as u2
# # os.system("adb tcpip 5566")
# # os.system("adb connect 192.168.40.89:5566")
# # d=u2.connect("192.168.40.89:5566")
# d=u2.connect_usb()
# d.app_start('com.yishouapp.fumi')
# d(xpathContains="*//[@text='主']").click()
# import re
#
# s="	订单号	12218915648530"
# t=re.findall(r'\d{14}',s)[0]
import jsonpath

s={
    "data": {
        "pay_status": "already",
        "pay_tool": "0",
        "trade_order_no": "PAZF22208153523241271164",
        "order_sn": "12220815353258",
        "service_order_sn": "",
        "order_amount": "112.12",
        "new_user_coupon_used": "0",
        "total_order_sn": [
            "12220815353258"
        ],
        "double_play": "0"
    },
    "msg": "success",
    "code": "200"
}

order_sn=jsonpath.jsonpath(s,"$..order_sn")[0]
print(order_sn)